@extends('layout.default')

@section('layout.content')

  <div class="row">
    <div class="col-xs-12">

      <input type="hidden" name="aid" value="{{$activity->id}}"/>
      <table id="user-list" class="table table-hover table-striped table-bordered nonborder">
        <thead>
        <tr>
          <th class="center">帐号</th>
          <th class="align-middle">姓名</th>
          <th class="center">签到</th>
          <th class="hidden-480 center">借阅</th>
          <th class="hidden-480 center">还书</th>
          <th class="center">积分</th>
          <th class="hidden-480 center">手机号码</th>
          <th class="hidden-480 center">登记日期</th>
          <th class="hidden-480 center" style="width:160px;"></th>
        </tr>
        </thead>
        <tbody>
        @foreach ($collections as $collection)
          <tr class="bank">
            <td class="center"><a
                  href="{{route('bank.user.edit',array('uid'=>$collection->user->id))}}">{{ $collection->user->account }}</a>
            </td>
            <td class="align-middle">{!! $collection->user->present()->face !!} <a
                  href="{{route('bank.user.show',array('uid'=>$collection->user->id))}}" class="uid"
                  data-id="{{ $collection->user->id }}">{{ $collection->user->name }}</a>
            </td>
            <td class="center b-sign">{{ $collection->user->summary->signs }}</td>
            <td class="hidden-480 center b-borrow">{{ $collection->user->summary->borrows }}</td>
            <td class="hidden-480 center b-return">{{ $collection->user->summary->returns }}</td>
            <td class="center b-point">{{ $collection->user->summary->points }}</td>
            <td class="hidden-480 center">{{ $collection->user->mobile }}</td>
            <td class="hidden-480 center">{{ date('Y-m-d',$collection->user->created_at) }}</td>
            <td class="hidden-480 center"><span>{!! $collection->user->present()->sign !!}&nbsp;&nbsp;{!! $collection->user->present()->award !!}&nbsp;&nbsp;<a
                    href="{{route('bank.user.print',array('id'=>$collection->user->id))}}" class="operate"><i
                      class="ace-icon fa fa-print grey bigger-120 "></i></a></span></td>

          </tr>
        @endforeach
        </tbody>
      </table>
    </div>
  </div>

@stop


@section('javascript')
  <script src="/assets/js/user-func.js"></script>

@stop